package com.ztgf.shopping.models.vo.shop;

import com.alibaba.fastjson.annotation.JSONField;
import com.alibaba.fastjson.serializer.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * author: chenyu.wang
 * date: 2020-05-28 10:53
 * Description: 类目树形结构vo
 */
@Data
public class CommodityCategoryTreeVO implements Serializable {

    @ApiModelProperty(value = "id")
    @JSONField(serializeUsing = ToStringSerializer.class)
    private Long id;
    @ApiModelProperty(value = "名称")
    private String name;
    @ApiModelProperty(value = "首字母缩写")
    private String initials;
    @ApiModelProperty(value = "父id")
    private Long parentId;
    @ApiModelProperty(value = "排序")
    private Integer sort;
    @ApiModelProperty(value = "唯一标识")
    private String code;
    @ApiModelProperty(value = "是否审核 0未审核、1打回、2审核通过、3审核失败")
    private Integer status;
    @ApiModelProperty(value = "下级结构")
    private List<CommodityCategoryTreeVO> childList;
}
